package com.huike.business.service;

import com.huike.business.domain.TbBusiness;
import com.huike.clues.domain.vo.AssignmentVo;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: wwq
 * @Date: 2023/07/12/15:26
 * @Description:
 */
public interface TbBusinessService {
    /**
     * 新增商机
     *
     * @param tbBusiness
     */
    int add(TbBusiness tbBusiness);

    /**
     * 查询商机列表
     * @param tbBusiness
     * @return
     */
    List<TbBusiness> list(TbBusiness tbBusiness);

    /**
     * 修改商机
     *
     * @param tbBusiness
     * @return
     */
    int update(TbBusiness tbBusiness);

    /**
     * 商机分配
     *
     * @param assignmentVo
     * @return
     */
    String assignment(AssignmentVo assignmentVo);

    /**
     * 线索转商机
     * @param clueId 线索ID
     * @return 影响行数
     */
    int changeBusiness(Long clueId);

    /**
     * 踢回公海
     * @param id
     * @param reason
     * @return
     */
    int back(Long id, String reason);

    /**
     * 批量捞取
     *
     * @param assignmentVo
     * @return
     */
    String gain(AssignmentVo assignmentVo);

    /**
     * 查询公海池
     *
     * @param tbBusiness
     * @return
     */
    List<TbBusiness> pool(TbBusiness tbBusiness);
}
